package com.gg.cart.service;

import com.gg.entity.Cart;
import com.gg.entity.Fruit;
import com.gg.povos.CartFruitPovo;

import java.util.List;

public interface CartService {

    /*查看某个用户的购物车条目们*/
    List<CartFruitPovo> getCartsByUid(String uid);
    /*按主键删除购物车条目*/
    void removeCartByCid(String cid);
    /*更新数量业务*/
    boolean updateCartByCidForCcount(String cid, Integer count);

    boolean addToCart(Cart cart, Fruit fruit);
}
